﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddUser.aspx.cs" Inherits="Com.CMS263.Web.manage.adminUser.AddUser" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../style/main.css" rel="stylesheet" type="text/css" />
    <link href="../common/validator.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 93px;
        }
        .style2
        {
            width: 188px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_1">
            <tr>
                <td class="tdside">
                    &nbsp; 用户名
                </td>
                <td class="tdside">
                    角色
                </td>
               <%-- <td class="tdside">
                    邮箱
                </td>--%>
                <td class="tdside">
                    操作
                </td>
                
            </tr>
            <asp:Repeater ID="userList" runat="server">
                <ItemTemplate>
                    <tr>
                        <td class="tdside">
                            <%#Eval("userName") %>
                        </td>
                        <td class="tdside">
                            <%#Eval("roleName")%>
                        </td>
                       <%-- <td class="tdside">
                            <%#Eval("UserEmail")%>
                        </td>--%>
                        <td class="tdside">
                            <asp:LinkButton ID="lbtn" runat="server" CommandArgument='<%#Eval("id")%>' OnClick="deleteUser"
                                OnClientClick="return confirm('真的要删除')">删除</asp:LinkButton>
                            | <a href="modify.aspx?id=<%#Eval("id") %>">修改用户</a>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
        </table>
        <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_1">
            <tr>
                <td class="tdside">
                    用户名：
                </td>
                <td class="tdside">
                    <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>用户名必须是数字或字母，不能使用汉字
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="tdside">
                    密码
                </td>
                <td class="tdside">
                    <asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox>
                    
                </td>
            </tr>
            <tr style="display:none">
                <td class="tdside">
                    邮箱：
                </td>
                <td class="tdside">
                    <asp:TextBox ID="txtUserEmail" runat="server"></asp:TextBox>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="tdside">
                    角色
                </td>
                <td class="tdside">
                    
                    <asp:DropDownList ID="dropRole" runat="server" >
                    </asp:DropDownList>
                </td>
            </tr>
           
            <tr>
                <td colspan="2" align="center">
                    <asp:Button ID="Button1" runat="server" Text="添加用户" OnClick="Button1_Click" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
